package com.lzl.lazy;

/**
 *
 *
 * 类锁，线程安全，影响效率
 */
public class LazyClassLockSingleton {

    private static LazyClassLockSingleton INSTANCE;

    private LazyClassLockSingleton(){}

    public static synchronized LazyClassLockSingleton getInstance(){
        if(null == INSTANCE){
            INSTANCE = new LazyClassLockSingleton();
        }
        return INSTANCE;
    }
}
